import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const busi: AppRouteModule = {
  path: '/detp',
  name: 'Dept',
  component: LAYOUT,
  redirect: '/dept/type',
  meta: {
    orderNo: 4,
    icon: 'ant-design:apartment-outlined',
    title: t('routes.busi.dept.moduleName'),
  },
  children: [
    {
      path: 'deptInfo',
      name: 'DeptInfo',
      meta: {
        title: t('routes.busi.dept.deptInfo'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/busi/dept/dept-info/index.vue'),
    },
    {
      path: 'userInfo',
      name: 'UserInfo',
      meta: {
        title: t('routes.busi.dept.userInfo'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/busi/Dept/user-info/index.vue'),
    },
  ],
};

export default busi;
